package com.le.buddha.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.le.buddha.mobile.ChatHistory;
import com.le.buddha.mobile.vo.ChatHistoryVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ChatHistoryMapper extends BaseMapper<ChatHistory> {
    @Select(" select * from  chat_history where user_id=#{userId} order by id asc  ")
    List<ChatHistoryVO> queryUserHistoryList(@Param("userId") Long userId);
}
